'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
const adminRouter = require('./adminRouter')
const indexRouter = require('./indexRouter')
module.exports = app => {
    const { router } = app;
    const routers = adminRouter(app).concat(indexRouter(app))
    routers.forEach(v => {
        router[v.method](v.path, v.name);
    })
};